package heman.server.controllerchain;

import heman.server.controllers.BanController;

import ks.framework.common.Message;
import ks.framework.communicator.Communicator;

import ks.server.controllers.ServerControllerChain;

/**

 * This adds the controller of "PlayersController". 
 * 
 * @author Wenlong Liu
 */

public class BanControllerChain extends ServerControllerChain{
	/**
	 * This extension understands Chat and that's it.
	 */
	@Override
	public boolean process(Communicator com, Message m) {
		if (m.getName().equals ("ban")) {
			return new BanController().process(com, m);
		}
		
		// try the next one in the chain...
		return next (com, m);
	}
}
